package com.zch.utils.webHook.alarm;

public class MainTest {
    public static void main(String[] args) {
        String webhookUrl ="https://open.feishu.cn/open-apis/bot/v2/hook/4411334a-fc59-4660-9a35-46c1044ee77e";
        // 创建飞书告警对象
        FeiShuAlarmMarkdown alarmMarkdown = new FeiShuAlarmMarkdown();
        alarmMarkdown.buildAlarmTitle("测试告警");
        alarmMarkdown.buildEvn("dev");
        alarmMarkdown.buildAlarmText("测试告警内容");
        alarmMarkdown.buildLink("性能环境","https://yf2ljykclb.xfchat.iflytek.com/wiki/ThQowveOlireh3ktB8qr3lcozrh");
        alarmMarkdown.buildWebHookUrl(webhookUrl);
        //调用静态方法 发送http 请求发送告警信息
        WebHookNotifier.sendAsync( alarmMarkdown);
    }
}
